/**
 * Copyright (c) 2016-2019 九点科技 All rights reserved.
 *
 * http://www.9dyun.cn
 *
 * 版权所有，侵权必究！
 */
package com.dian.modules.base.entity;

import com.dian.common.validator.group.AddGroup;
import com.dian.common.validator.group.UpdateGroup;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.dian.common.entity.BaseEntity;
import java.util.Date;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
 * 职员
 *
 * @author zhourui
 * @email 1436907200@qq.com
 * @date 2019-07-04 15:53:32
 */
@Data
@TableName("base_member")
public class MemberEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

        /**
        * 职员编码      
        */
        @NotBlank(message="职员编码      不能为空",  groups ={AddGroup.class, UpdateGroup.class})
        @Length(max=30,  groups ={AddGroup.class, UpdateGroup.class}, message="职员编码      长度不能超过30个字符")
        private String memberCode;



        /**
        * 职员名称      
        */
        @NotBlank(message="职员名称      不能为空",  groups ={AddGroup.class, UpdateGroup.class})
        @Length(max=30,  groups ={AddGroup.class, UpdateGroup.class}, message="职员名称      长度不能超过30个字符")
        private String memberName;



        /**
        * 是否有效:0-禁用-DISABLE;1-启用-NORMAL
        */
        @NotNull(message="是否有效不能为空",groups = {AddGroup.class,UpdateGroup.class})
        private Integer isValid;






}
